package com.fare.taluo.queue;

import com.dayatang.domain.InstanceFactory;
import com.fare.taluo.application.queue.IScheduleQueueApplication;
import com.fare.taluo.application.queue.QueueEmailGetRegisterCodeApplication;
import com.fare.taluo.queue.template.ScheduleQueueTemplate;
import com.fare.taluo.vo.queue.QueueRegisterEmailInfoVO;
/**
 * 邮件发送队列实现类
 * <p>threahpool-config.xml中配置名称
 * @author creator: gan
 * @author modifior: gan
 * @since 2014-04-28上午8:53:11
 * @version v1.0
 */
public class ScheduleQueueEmailCodeGetInfo extends ScheduleQueueTemplate<ScheduleQueueEmailCodeGetInfo,QueueRegisterEmailInfoVO>{

	private QueueRegisterEmailInfoVO vo;
	
	public ScheduleQueueEmailCodeGetInfo(){}
	
	public ScheduleQueueEmailCodeGetInfo(QueueRegisterEmailInfoVO vo){
		this.vo = vo;
	}

	@Override
	public IScheduleQueueApplication<QueueRegisterEmailInfoVO> getApplication() {
		return InstanceFactory.getInstance(QueueEmailGetRegisterCodeApplication.class, "queueEmailGetRegisterCodeApplication");
	}

	@Override
	public ScheduleQueueEmailCodeGetInfo delegate(QueueRegisterEmailInfoVO vo) {
		return new ScheduleQueueEmailCodeGetInfo(vo);
	}

	@Override
	public QueueRegisterEmailInfoVO getDelegateSource() {
		return vo;
	}

}
